package com.asas.spaceflight.controller;

import com.badlogic.gdx.math.Vector2;

public class Util {

	public Util() {
	}
	
	public static void SetVectorLength(Vector2 vector, float length) {
		double angle = Math.toRadians(vector.angle());
		float x = (float)Math.cos(angle) * length;
		float y = (float)Math.sin(angle) * length;
		vector.set(x, y);
	}

}
